/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cz.uhk.ppro.response.model;

import java.io.Serializable;
import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 *
 * @author Martin Zmítko <martin.zmitko@gmail.com>
 */

@Entity
@Table(name="ANSWER")
public class Answer extends NamedEntity implements Serializable{

  
    private boolean isCorrect;
    
    

    public Answer() {
    }

    public Answer(boolean isCorrect)
    {
        this.isCorrect = isCorrect;
    }

    @ManyToOne
    private Question question;

    public Question getQuestion() {
        return question;
    }

    public void setQuestion(Question question) {
        this.question = question;
    }

    public boolean isIsCorrect() {
        return isCorrect;
    }

    public void setIsCorrect(boolean isCorrect) {
        this.isCorrect = isCorrect;
    }

    
}
